package com.css.zfzx.fxpg.modules.vulnerability.province.viewobjects;

import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.afterturn.easypoi.handler.inter.IExcelDataModel;
import cn.afterturn.easypoi.handler.inter.IExcelModel;
import com.css.bpm.platform.api.local.PlatformAPI;
import com.css.bpm.platform.sys.dict.repository.entity.DictItemEntity;
import com.css.zfzx.fxpg.modules.vulnerability.province.repository.entity.FxVulnerabilityProvinceEntity;
import lombok.Data;

import javax.persistence.*;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;
import java.util.List;

/**
 * @author leon
 * @date 2020-11-10
 */
@Data
public class FxVulnerabilityProvinceVO implements Serializable, IExcelDataModel, IExcelModel {

    @NotNull(message = "缺失")
    @Excel(name = "省", width = 15)
    private String province;

    @NotNull(message = "缺失")
    @Excel(name = "市", width = 15)
    private String city;

    @NotNull(message = "缺失")
    @Excel(name = "区", width = 15)
    private String area;

    @NotNull(message = "缺失")
    @Excel(name = "结构类型", width = 15)
    private String structureType;

    @NotNull(message = "缺失")
    @Excel(name = "破坏程度", replace = {"基本完好_0", "轻微破坏_1", "中等破坏_2", "严重破坏_3", "完全破坏_4"}, width = 15)
    private String damageDegree;


    @NotNull(message = "缺失")
    @Excel(name = "烈度为VI的易损性(保留两位小数, 单位%)", width = 40)
    private Float vulnerabilityVI;

    @NotNull(message = "缺失")
    @Excel(name = "烈度为VII的易损性(保留两位小数, 单位%)", width = 40)
    private Float vulnerabilityVII;

    @NotNull(message = "缺失")
    @Excel(name = "烈度为VIII的易损性(保留两位小数, 单位%)", width = 40)
    private Float vulnerabilityVIII;

    @NotNull(message = "缺失")
    @Excel(name = "烈度为IX的易损性(保留两位小数, 单位%)", width = 40)
    private Float vulnerabilityIX;

    @NotNull(message = "缺失")
    @Excel(name = "烈度为X的易损性(保留两位小数, 单位%)", width = 40)
    private Float vulnerabilityX;


    private Integer rowNum;
    private String errorMsg;

}